package org.example.lotterysystem.service;

import org.example.lotterysystem.controller.param.CreatePrizeParam;
import org.example.lotterysystem.controller.param.PageParam;
import org.example.lotterysystem.service.dto.PageListDTO;
import org.example.lotterysystem.service.dto.PrizeDTO;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

public interface PrizeService {
    /*
    * 创建单个奖品
    *
    * param 奖品属性
    * picFile 上传的奖品图片
    * @return 奖品id
    * */
    Long createPrize(CreatePrizeParam param, MultipartFile picFile);


    /*
    *
    * 翻页查询列表
    * */

     PageListDTO<PrizeDTO> findPrizeList(PageParam param);
}
